package com.longtu.chat.vo;

import lombok.Data;

import java.util.Objects;

@Data
public class UserVo {
    private String loginName;
    private String distance;
    private String avatar;
    private Integer state;

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        UserVo userVo = (UserVo) o;
        return Objects.equals(loginName, userVo.loginName);
    }

    @Override
    public int hashCode() {
        return Objects.hash(loginName);
    }
}
